#ifndef MYCALLBACK_H
#define MYCALLBACK_H

#include <sbs2callback.h>
#include <sbs2datahandler.h>
#include <nativeaudioplayer.h>

class MyCallback : public Sbs2Callback
{
    Q_OBJECT
public:
    explicit MyCallback(QObject *parent = 0);
    void getData(Sbs2Packet *packet);
public:
    NativeAudioPlayer* audioPlayer;

private:
    int isInPlayback;
    int playbackPosition;
    QString currentText;
    QString fullText;

    int playback1;
    int playback2;

signals:
    void playSingle();


public slots:
    void checkPlaybackStatus();
    void save();
    void startPlayback1();
    void startPlayback2();

};

#endif // MYCALLBACK_H
